package com.oyc.demo.easyexcel;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = OKNOConstraintValidator.class)
public @interface OKNO {

    String message() default "只能输入合格/不合格两种数据";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}